﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;

namespace UniversityStudentManagemnetSystem.DAO.Gateway
{
    public class GradeGateway:Gateway
    {
        public DataTable GetAllGrades()
        {
            string selectQuery = string.Format("Select * from t_Grade");
            SqlDataAdapter adapter=new SqlDataAdapter(selectQuery,GetConnectionString());
            DataSet myDataset=new DataSet();
            adapter.Fill(myDataset, "GradeTable");
            DataTable table = myDataset.Tables["GradeTable"];
            return table;
        }
    }
}